package com.za.wbw.dao.shop.impl;

import com.za.wbw.dao.shop.LoginDao;
import com.za.wbw.model.shop.UserInfo;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

public class LoginDaoImpl extends SqlMapClientDaoSupport implements LoginDao {
	// 查询商家数量
	public int queryShopCount() throws Exception{
		return (Integer)getSqlMapClientTemplate().queryForObject("shop.queryShopCount");
	}
	// 查询用户信息
	public UserInfo queryUserByAccount(String account) throws Exception{
		return (UserInfo)getSqlMapClientTemplate().queryForObject("shop.queryUserByAccount",account);
	}
}
